﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using BrnMall.Web.Framework;
using Senparc.Weixin.MP;

namespace BrnMall.Web.Mobile.controllers
{
	public class WeiXinController: BaseMobileController
	{
		public ActionResult AccessValidate(string signature, string timestamp, string nonce, string echostr)
		{
			var isValid= CheckSignature.Check(signature, timestamp, nonce, "MyBrnMall");
			return isValid ? Content(echostr) : null;
		}
	}
}
